package org.dromara.travel.service;

import org.dromara.travel.domain.RiskDisclaimer;
import org.dromara.travel.domain.vo.RiskDisclaimerVo;
import org.dromara.travel.domain.bo.RiskDisclaimerBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 免责声明Service接口
 *
 * @author jacheut
 * @date 2024-04-04
 */
public interface IRiskDisclaimerService {

    /**
     * 查询免责声明
     */
    RiskDisclaimerVo queryById(Long id);

    /**
     * 查询免责声明列表
     */
    TableDataInfo<RiskDisclaimerVo> queryPageList(RiskDisclaimerBo bo, PageQuery pageQuery);

    /**
     * 查询免责声明列表
     */
    List<RiskDisclaimerVo> queryList(RiskDisclaimerBo bo);

    /**
     * 新增免责声明
     */
    Boolean insertByBo(RiskDisclaimerBo bo);

    /**
     * 修改免责声明
     */
    Boolean updateByBo(RiskDisclaimerBo bo);

    /**
     * 校验并批量删除免责声明信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
